<!DOCTYPE html>
<<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>修改页面</h1>
<form action="editgoods" method="post">
    <input type="hidden" name="id" th:value="${good.id}">
    商品名称：<input type="text" name="title" th:value="${good.title}"><br>
    商品类型:
    <select name="type_id">
        <option value="">===请选择===</option>
        <option value="1" th:selected="${good.type_id==1}">电子产品</option>
        <option value="2" th:selected="${good.type_id==2}">农副产品</option>
    </select><br>
    商品状态:
    <select name="state">

        <option value="0" th:selected="${good.state==0}">已上架</option>
        <option value="1" th:selected="${good.state==1}">已下架</option>
    </select><br>
    <input type="submit" value="修改">

</form>
</body>
</html>